package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * ApiResponseCustomerOverallServiceEventData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiResponseCustomerOverallServiceEventData   {
  @JsonProperty("event")
  @Valid
  private List<ServiceEventPage> event = null;

  public ApiResponseCustomerOverallServiceEventData event(List<ServiceEventPage> event) {
    this.event = event;
    return this;
  }

  public ApiResponseCustomerOverallServiceEventData addEventItem(ServiceEventPage eventItem) {
    if (this.event == null) {
      this.event = new ArrayList<ServiceEventPage>();
    }
    this.event.add(eventItem);
    return this;
  }

  /**
   * kpm
   * @return event
  **/
  @ApiModelProperty(value = "kpm")

  @Valid

  public List<ServiceEventPage> getEvent() {
    return event;
  }

  public void setEvent(List<ServiceEventPage> event) {
    this.event = event;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiResponseCustomerOverallServiceEventData apiResponseCustomerOverallServiceEventData = (ApiResponseCustomerOverallServiceEventData) o;
    return Objects.equals(this.event, apiResponseCustomerOverallServiceEventData.event);
  }

  @Override
  public int hashCode() {
    return Objects.hash(event);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiResponseCustomerOverallServiceEventData {\n");
    
    sb.append("    event: ").append(toIndentedString(event)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

